builderparser: fix <lookup/> with interface types
authorChristian Hergert <chergert@redhat.com>
Tue, 31 May 2022 22:58:21 +0000 (15:58 -0700)
committerChristian Hergert <chergert@redhat.com>
Tue, 31 May 2022 22:58:21 +0000 (15:58 -0700)
commit63e9e7e8997543827161d288648b2d8b4b95e439
treede25636a2a6796488213a5f348b8676243d3220c
parent480a933546120f8415f79ec78fe74876351a9bba
builderparser: fix <lookup/> with interface types

If we have a <lookup name="foo" type="SomeInterface"> a runtime warning
would be emitted and the expression would fail to be created. This is
because the interfaces will likely be a GObject as well, meaning we check
the object type branch instead of the interface.

Instead, we need to use the fundamental type like other parts of the
expression system use.
gtk/gtkbuilderparser.c